package cn.edu.zut.soft.student.dao;

import cn.edu.zut.soft.student.model.Course;
import cn.edu.zut.soft.student.model.TeachCourseExample;
import cn.edu.zut.soft.student.model.TeachCourseKey;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface TeachCourseMapper {
    long countByExample(TeachCourseExample example);

    int deleteByExample(TeachCourseExample example);

    int deleteByPrimaryKey(TeachCourseKey key);

    int insert(TeachCourseKey record);

    int insertSelective(TeachCourseKey record);

    List<TeachCourseKey> selectByExample(TeachCourseExample example);

    int updateByExampleSelective(@Param("record") TeachCourseKey record, @Param("example") TeachCourseExample example);

    int updateByExample(@Param("record") TeachCourseKey record, @Param("example") TeachCourseExample example);

    Course queryTeachCourse(@Param("teacherid") String teacherid);
}